<!DOCTYPE html>
<html lang="zh">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>BBS</title>
    <link rel="stylesheet" href="materialize/css/materialize.min.css">
    <link href="iconfont/material-icons.css" rel="stylesheet">
    <link href="css/common.css" rel="stylesheet">
    <script src="js/jquery-2.2.2.min.js"></script>
    <script src="materialize/js/materialize.min.js"></script>
    <script src="js/register.js"></script>
</head>

<body>
    <nav class="green lighten-2 nav-extended">
        <div class="nav-wrapper">
            <div class="container">
                <a href="#" class="brand-logo">BBS</a>
                <ul id="nav-mobile" class="right hide-on-med-and-down">
                    <li><a href="index">帖子</a></li>
                    <li><a href="rank">排行榜</a></li>
                    <li><a href="user">我</a></li>
                </ul>
            </div>
        </div>
    </nav>
    <div class="container">
        <div class="row">
            <div class=" col l4  m6  s12">
                <form action="reg" method="post" class="section">
                    <input type="hidden" name="base" id="base">
                    <div class="file-field input-field">
                        <img src="imgs/default.png" class="responsive-img  border-1 circle head-small  min-height-100  max-height-100" id="head">
                        <input type="file" name="head" accept="image/jpg,image/jpeg,image/gif,image/x-png">
                    </div>
                    <div class="input-field">
                        <input type="text" id="un" name="username" required>
                        <label for="un">用户名</label>
                    </div>
                    <div class="input-field">
                        <input type="password" id="pd" name="password" required>
                        <label for="pd">密码</label>
                    </div>
                    <div class="input-field">
                        <input type="password" id="pds" required>
                        <label for="pds">再次输入密码</label>
                    </div>
                    <button class="btn waves-effect green lighten-2" type="submit" name="action">
                      注册
                    </button>
                    <br>
                </form>
                <a href="login" class="left green-text smaller-font">去登录</a>
            </div>
        </div>
    </div>
</body>
